﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace NFine.Data.Migrations
{
    public partial class Modified_UserRole_Property : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<DateTime>(
                name: "CreatedTime",
                table: "sys_user_role",
                nullable: true);

            migrationBuilder.AddColumn<long>(
                name: "CreatorUserId",
                table: "sys_user_role",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "DeletedTime",
                table: "sys_user_role",
                nullable: true);

            migrationBuilder.AddColumn<long>(
                name: "DeleterUserId",
                table: "sys_user_role",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "ModifiedTime",
                table: "sys_user_role",
                nullable: true);

            migrationBuilder.AddColumn<long>(
                name: "ModifierUserId",
                table: "sys_user_role",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "CreatedTime",
                table: "sys_user_role");

            migrationBuilder.DropColumn(
                name: "CreatorUserId",
                table: "sys_user_role");

            migrationBuilder.DropColumn(
                name: "DeletedTime",
                table: "sys_user_role");

            migrationBuilder.DropColumn(
                name: "DeleterUserId",
                table: "sys_user_role");

            migrationBuilder.DropColumn(
                name: "ModifiedTime",
                table: "sys_user_role");

            migrationBuilder.DropColumn(
                name: "ModifierUserId",
                table: "sys_user_role");
        }
    }
}
